package com.chushouya.product.dto.admin.product.evaluate;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.util.List;

@Data
@ApiModel("评估选项模板")
public class TempEvaluateDetailDTO {

    @ApiModelProperty(value = "类目id", required = true)
    private Long categoryId;

    @ApiModelProperty(value = "模板名称", required = true)
    private String tempName;
    @ApiModelProperty(value = "模板排序", required = true)
    @NotBlank(message = "模板排序不能为空")
    private Integer sort;

    @ApiModelProperty(value = "扣减规则", required = true)
    private Integer calcType;

    @ApiModelProperty("计费方式")
    private String calcTypeDesc;

    @ApiModelProperty(value = "评估项目列表", required = true)
    private List<TempEvaluateItemDetailDTO> items;

//    public String getCalcTypeDesc() {
//        return EvaluateCalcTypeEnum.getDesc(this.calcType);
//    }

}
